4542d0ae947806d2ff1a9eca77e34cbc85467e15,src/edu/umass/cs/gnsclient/console/commands/AclList.java,AclList,parse,#String#,81
Before Change
// implemented yet)
JSONArray read = gnsClient.aclGet(AclAccessType.READ_WHITELIST, module.getCurrentGuid(), field, module
.getCurrentGuid().getGuid());
console.printString("Read ACL: " + read.toString());
console.printNewline();
// Then write ACLs
After Change
GNSClientCommands gnsClient = module.getGnsClient();
StringTokenizer st = new StringTokenizer(commandText.trim());
if (st.countTokens() != 1) {
wrongArguments();
return;
}
String field = st.nextToken();
if (gnsClient.fieldAclExists(AclAccessType.READ_WHITELIST, module.getCurrentGuid(), field)) {
JSONArray read = gnsClient.aclGet(AclAccessType.READ_WHITELIST, module.getCurrentGuid(), field, module
.getCurrentGuid().getGuid());
console.printString("Read ACL: " + read.toString());
console.printNewline();
} else {
console.printString("Read ACL for field " + field + " does not exist");